package com.vote.services.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.vote.dao.VoteQuestionDAO;
import com.vote.services.QuestionService;

public class QuestionServiceImpl implements QuestionService{

	@Autowired
	private VoteQuestionDAO questiondao;
	
	 private static final Logger logger = Logger.getLogger(UserServiceImpl.class);
	 
	 
	@Override
	public void updateQuestionById(int id) {
		questiondao.addCount(id);
		logger.info("update questionCount successful!!!");
		
	}

}
